-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Auto-affectation] Mettre en place un simulateur #3611
Conversation
44eb599
to
007eeaa
Compare
cf74b76
to
9255254
Compare
} | ||
$signalements = $signalementRepository->findBy($criteria, ['createdAt' => 'DESC'], $limit); | ||
foreach ($signalements as $signalement) { | ||
$autoAssigner->assign($signalement, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je trouve bizarre d'utiliser les deux méthodes.
Ici, j'utiliserais simplement la méthode get
(qu'il faut modifier en conséquence)
Et la méthode assign
appelle la méthode get
en interne ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, j'ai adapté le code
007eeaa
to
4c2cf65
Compare
9255254
to
d85c9e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pas testé, quelques commentaires
d6e299d
to
095db40
Compare
d85c9e1
to
9040e9f
Compare
$signalements = $signalementRepository->findBy($criteria, ['createdAt' => 'DESC'], $limit); | ||
foreach ($signalements as $signalement) { | ||
$assignablePartners = $autoAssigner->assign($signalement, true); | ||
dump($assignablePartners); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiens... un dump ! :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrigé, merci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests OK
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK lecture et tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relecture et tests OK
Ticket
#3590
Description
Mise en place d'un outil permettant de simuler le traitement d'auto affectation
limit=100
, il est aussi possible de recherche un signalement particulier sur le territoire via l'url ex :uuid=blabla
)Tests